SocketCore.Close Method
Closes the socket's connection, closes any connections the socket may have, and resets the socket. The only information that is retained after calling Close is the socket's port, address (in the case of TCPSockets), and LastErrorCode properties, and data left in the socket's receive buffer.
Syntax
All other information is discarded.